package com.dic.flowfrom.model;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import lombok.Data;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.GenericGenerator;


@Entity
@Table(name="WF_FORM_ELEMENT")
//@Cache(usage=CacheConcurrencyStrategy.READ_WRITE,region="wf_cache")
@Data
public class FormElement implements Comparable{
	
	private static final long serialVersionUID = 90019857639324473L;

	@Id
	@GeneratedValue(generator = "paymentableGenerator")
	@GenericGenerator(name = "paymentableGenerator", strategy = "uuid")
	private String id;
	@Column(name = "ELEMENT_NAME",length=32)
	private String elementName;//元素名称
	@Column(name = "ELEMENT_ID",length=32)
	private String elementId;
	@Column(name = "ELEMENT_TYPE",length=16)
	private String elementType;//元素类型
	@Column(name = "FIELD_TYPE",length=16)
	private String fieldType;//字段类型
	@Column(name = "FIELD_LONG")
	private Integer fieldLong;//字段长度

	@Override
	public int compareTo(Object o) {
		return 0;
	}

//	private Form form;
	
}
